package cn.auction.entity;
//拍卖用户表
public class AuctionUser {
    private Long userId;
    private String userName;
    private String userPassword;
    private String userCardNo;//用户身份证号
    private String userTel;//电话
    private String userAddress;//地址
    private String userPostNumber;//用户邮政编号
    private Boolean userIsAdmin;//用户是否为管理员：0是竞拍者1是管理员默认值是0
    private String userQuestion;//用户找回密码的问题
    private String userAnswer;//找回密码问题的答案

    public AuctionUser() { }

    public AuctionUser(Long userId, String userName, String userPassword, String userCardNo, String userTel, String userAddress, String userPostNumber, Boolean userIsAdmin, String userQuestion, String userAnswer) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userCardNo = userCardNo;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
        this.userIsAdmin = userIsAdmin;
        this.userQuestion = userQuestion;
        this.userAnswer = userAnswer;
    }

    @Override
    public String toString() {
        return "AuctionUser{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userCardNo='" + userCardNo + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userPostNumber='" + userPostNumber + '\'' +
                ", userIsAdmin=" + userIsAdmin +
                ", userQuestion='" + userQuestion + '\'' +
                ", userAnswer='" + userAnswer + '\'' +
                '}';
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserCardNo() {
        return userCardNo;
    }

    public void setUserCardNo(String userCardNo) {
        this.userCardNo = userCardNo;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPostNumber() {
        return userPostNumber;
    }

    public void setUserPostNumber(String userPostNumber) {
        this.userPostNumber = userPostNumber;
    }

    public Boolean getUserIsAdmin() {
        return userIsAdmin;
    }

    public void setUserIsAdmin(Boolean userIsAdmin) {
        this.userIsAdmin = userIsAdmin;
    }

    public String getUserQuestion() {
        return userQuestion;
    }

    public void setUserQuestion(String userQuestion) {
        this.userQuestion = userQuestion;
    }

    public String getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(String userAnswer) {
        this.userAnswer = userAnswer;
    }
}
